﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;

namespace WMI.NET.CIM
{
    /// <summary>
    /// The CIM_AllocatedResource class represents an association between logical devices and system resources and indicates that the resource is assigned to the device.
    /// </summary>
    public class CIM_AllocatedResource : CIM_Dependency 
    {

        private CIM_SystemResource _Antecedent;
        private CIM_LogicalDevice _Dependent;

        /// <summary>
        /// 
        /// </summary>
        new public CIM_SystemResource Antecedent { get { return _Antecedent; } }

        /// <summary>
        /// 
        /// </summary>
        new public CIM_LogicalDevice Dependent { get { return _Dependent; } }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="mbo"></param>
        public CIM_AllocatedResource(ManagementBaseObject mbo)
            : base(mbo)
        {
            _Antecedent = new CIM_SystemResource(mbo);
            _Dependent = new CIM_LogicalDevice(mbo);
        }

    }
}
